package com.ai.bitcoin.exception;

/**
 * <p>
 * BaseException is the base exception for fb project
 * </p>
 * 
 * @author xd
 *
 */
public abstract class BaseException extends RuntimeException {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected String errorCode;
	
	public BaseException(String msg) {
		super(msg);
	}
	
	public BaseException(String msg, Throwable cause) {
		super(msg, cause);
	}
	
	public BaseException(String code, String msg) {
		super(msg);
		this.errorCode = code;
	}
	
	public BaseException(String code, String msg, Throwable cause) {
		super(msg, cause);
		this.errorCode = code;
	}

	public String getErrorCode() {
		return errorCode;
	}

}
